<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>用户信息</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <link rel="stylesheet" href="stylesheets/screen.css"/>
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>
    <script src="js/checkSo.js" type="text/javascript"></script>
    <script>

        function initPage() {
            $("#logout").live("click", logOut);
            //退出系统
            function logOut() {
                $.ajax({
                    url: c.BASE_URL_DEV + "loginController/logout",
                    data: {token: getKey()},
                    dataType: "jsonp",
                    jsonp: "callback",
                    success: function (data) {
                        console.log(data.result.code);
                        alert("退出成功！")
                        sessionStorage.clear();
                        location.href = "login.html";
                    },
                    error: function (er) {
                        console.log(er);
                    }
                });
            }
        }
        $(initPage);
    </script>

</head>
<body>
<!--<div class="widthtest">
    <span>这是个一个提示层</span>
</div>-->
<div class="container">
    <div class="page-header">
        <h2>个人信息</h2>
        <a href="javascript:void(0);" id="logout">退出系统</a>
    </div>
</div>


</body>
</html>